package net.ericaro.neojavagen.blocks;

/**
 * <b>CaseConstantExpresion</b> ::= "case" <{@link net .ericaro .neojavagen .expressions .ConstantExpression ConstantExpression}> ":"
 * 
 * @author eric@ericaro.net
 */
public class CaseConstantExpresion extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.expressions.ConstantExpression constantExpression;

	public CaseConstantExpresion(net.ericaro.neojavagen.expressions.ConstantExpression constantExpression) {
		super();
		this.constantExpression = constantExpression;
	}

	public net.ericaro.neojavagen.expressions.ConstantExpression getConstantExpression() {
		return constantExpression;
	}

	public void setConstantExpression(net.ericaro.neojavagen.expressions.ConstantExpression constantExpression) {
		this.constantExpression = constantExpression;
	}

	@Override
	public java.lang.String toString() {
		return print("case", constantExpression, ":");
	}
}
